<?php
/**
*Version: 6.5
**/
/*****taxonomy feild ******/
$termseo_feild = array();
$termseo_cof = array('category','post_tag','topics');
$termseo_feild[] = array(
  'name'      => '栏目标题',
  'id'        => 'title',
  'desc'      => '自定义栏目标题，用于SEO优化',
  'std'       => '',
  'edit_only' => false,
  "type"      => "text"
);
$termseo_feild[] = array(
  'name'      => '栏目关键词',
  'id'        => 'key',
  'desc'      => '自定义栏目关键词，用于SEO优化',
  'std'       => '',
  'edit_only' => false,
  "type"      => "text"
);
$termseo_feild[] = array(
  'name'      => '栏目描述',
  'id'        => 'des',
  'desc'      => '自定义栏目描述，用于SEO优化',
  'std'       => '',
  'edit_only' => false,
  "type"      => "textarea"
);
$ashuwp_termmeta_feild = new ashuwp_termmeta_feild($termseo_feild, $termseo_cof);
/**
*
*post meta test
*
**/
/*****Meta Box********/
$leonhere_app = array();
$app_conf = array('title' => '参数设置', 'id'=>'post_settings', 'page'=>array('post'), 'context'=>'normal', 'priority'=>'low');
$leonhere_app[] = array(
  'name' => 'APP图标',
  'id'   => 'icon',
  'desc' => '尺寸180px * 180px',
  'std'  => '',
  'button_text' => '上传图片',
  'type' => 'upload'
);
$leonhere_app[] = array(
  'name' => 'APP截图',
  'id'   => 'screenshot',
  'desc' => '太多会影响页面打开速度',
  'std'  => '',
  'button_text' => '上传图片',
  'type' => 'gallery'
);
$leonhere_app[] = array(
  'name' => '安卓APP',
  'id'   => 'android',
  'desc' => '可直接上传APP，也可以使用APP外链',
  'std'  => '',
  'button_text' => '上传APP',
  'type' => 'upload'
);
$leonhere_app[] = array(
  'name' => '苹果APP',
  'id'   => 'ios',
  'desc' => '可直接上传APP，也可以使用APP外链',
  'std'  => '',
  'button_text' => '上传APP',
  'type' => 'upload'
);
$leonhere_app[] = array(
  'name' => 'APP大小',
  'id'   => 'size',
  'desc' => '如15MB',
  'std'  => '',
  'type' => 'text'
);
$leonhere_app[] = array(
	'name' => '版本',
	'id'   => 'version',
	'std'  => '',
	'type' => 'text'
);
$leonhere_app[] = array(
	'name' => '软件类型',
	'id'   => 'type',
	'std'  => '',
	'type' => 'text'
);
$leonhere_app[] = array(
	'name' => '更新时间',
	'id'   => 'create_time',
	'std'  => '',
	'type' => 'text'
);$leonhere_app[] = array(
	'name' => '软件授权',
	'id'   => 'auth',
	'std'  => '',
	'type' => 'text'
);$leonhere_app[] = array(
	'name' => '软件语言',
	'id'   => 'language',
	'std'  => '',
	'type' => 'text'
);$leonhere_app[] = array(
	'name' => '应用平台',
	'id'   => 'platform',
	'std'  => '',
	'type' => 'text'
);

$setting_box = new ashuwp_postmeta_feild($leonhere_app, $app_conf);
/**
*
*post meta test
*
**/
/*****Meta Box********/
$postseo = array();
$postseo_conf = array('title' => 'SEO设置', 'id'=>'post_seo', 'page'=>array('post','page','news_type'), 'context'=>'normal', 'priority'=>'low');
$postseo[] = array(
  'name' => '自定义标题',
  'id'   => 'title',
  'desc' => '自定义页面标题，用于SEO优化',
  'std'  => '',
  'type' => 'text'
);
$postseo[] = array(
  'name' => '自定义关键词',
  'id'   => 'keywords',
  'desc' => '自定义页面关键词，用于SEO优化',
  'std'  => '',
  'type' => 'text'
);
$postseo[] = array(
  'name' => '自定义描述',
  'id'   => 'description',
  'desc' => '自定义页面描述，用于SEO优化',
  'std'  => '',
  'type' => 'textarea'
);
$new_box = new ashuwp_postmeta_feild($postseo, $postseo_conf);
/**
*
*Optinos page
*
**/
/**General options**/
/**Child options page width tab style**/
$settings_info = array(
  'full_name'   => '主题设置',
  'optionname'  => 'leonhere',
  'child'=>false,  
  'filename'    => 'theme-settings'
);

$leonhere_option = array();
/**first tab**/
$leonhere_option[] = array(
  'name' => '基础设置',
  'id'   => 'option_tab1',
  'type' => 'open',
);

$leonhere_option[] = array(
  'name' => 'LOGO图片',
  'id'   => 'logo',
  'desc' => 'LOGO图片尺寸：190px × 40px',
  'std'  => get_bloginfo('template_url').'/images/logo.png',
  'button_text' => '上传图片',
  'type' => 'upload'
);

$leonhere_option[] = array(
  'name' => '微信二维码',
  'id'   => 'weixin',
  'desc' => '二维码图片尺寸：100px × 100px，留空不显示',
  'std'  => '',
  'button_text' => '上传二维码',
  'type' => 'upload'
);

$leonhere_option[] = array(
  'name'      => '微博地址',
  'id'        => 'weibo',
  'desc'      => '微博主页地址，留空不显示',
  'std'       => 'https://weibo.com',
  'edit_only' => false,
  "type"      => "text"
);
$leonhere_option[] = array(
  'name'    => '网站统计',
  'id'      => 'statistic',
  'desc'    => '输入网站统计代码，如百度统计、cnzz统计等',
  'std'     => '',
  'edit_only' => false,
  'type'    => 'textarea'
);
$leonhere_option[] = array(
  'name'      => '底部说明文字',
  'id'        => 'statement',
  'desc'      => '全站底部说明文字',
  'std'       => '本网站数据均受版权保护，任何公司及个人不得以任何方式复制，违者将依法追究责任，特此声明。',
  'edit_only' => false,
  "type"      => "textarea"
);
$leonhere_option[] = array(
  'type' => 'close',
);
/**second tab**/
$leonhere_option[] = array(
  'name' => '首页设置',
  'id'   => 'option_tab2',
  'type' => 'open',
);
$leonhere_option[] = array(
  'name'    => '新闻动态',
  'id'      => 'news',
  'desc'    => '首页顶部轮播新闻要调用的栏目，请先在后台——右侧——新闻——新闻分类里创建分类目录',
  'std'     => '',
  'subtype' => 'topics',
  'type'    => 'select'
);
$leonhere_option[] = array(
  'name'    => 'APP栏目',
  'id'      => 'app',
  'desc'    => '首页要调用的APP分类',
  'std'     => '',
  'subtype' => 'category',
  'type'    => 'checkbox'
);
$leonhere_option[] = array(
  'name'      => '显示数量',
  'id'        => 'appnum',
  'desc'      => '每个分类APP显示数量',
  'std'       => '8',
  'edit_only' => false,
  "type"      => "text"
);
$leonhere_option[] = array(
  'type' => 'close',
);
/**third tab**/
$leonhere_option[] = array(
  'name' => '广告设置',
  'id'   => 'option_tab3',
  'type' => 'open',
);

$leonhere_option[] = array(
  'name'    => '全站顶部广告',
  'id'      => 'topad',
  'desc'    => '广告尺寸：图片超链接广告请自行调整图片大小，按比例缩放；第三方广告平台，请在第三方广告平台获取自适应式广告位代码（如果第三方广告平台支持）',
  'std'     => '',
  'edit_only' => false,
  'type'    => 'textarea'
);
$leonhere_option[] = array(
  'name'    => '首页列表广告',
  'id'      => 'listad',
  'desc'    => '广告尺寸：图片超链接广告请自行调整图片大小，按比例缩放；第三方广告平台，请在第三方广告平台获取自适应式广告位代码（如果第三方广告平台支持）',
  'std'     => '',
  'edit_only' => false,
  'type'    => 'textarea'
);

$leonhere_option[] = array(
  'name'    => '文章开头广告',
  'id'      => 'postStart',
  'desc'    => '广告尺寸：图片超链接广告请自行调整图片大小，按比例缩放；第三方广告平台，请在第三方广告平台获取自适应式广告位代码（如果第三方广告平台支持）',
  'std'     => '',
  'edit_only' => false,
  'type'    => 'textarea'
);
$leonhere_option[] = array(
  'type' => 'close',
);
/**fourth tab**/
$leonhere_option[] = array(
  'name' => 'SEO设置',
  'id'   => 'option_tab4',
  'type' => 'open',
);
$leonhere_option[] = array(
  'name'    => '主题SEO功能',
  'id'      => 'seo',
  'desc'    => '选择是否关闭主题自带的SEO功能，关闭后，主题自带的首页、分类、文章的自定义标题、关键词、描述设置将不生效，默认开启',
  'std'     => 'start',
  'subtype' => array(
    'close'      => '关闭',
    'start'    => '开启',    
  ),
  'type'    => 'radio'
);
$leonhere_option[] = array(
  'name'      => '自定义标题',
  'id'        => 'title',
  'desc'      => '自定义网站title标题',
  'std'       => '',
  'edit_only' => false,
  "type"      => "text"
);
$leonhere_option[] = array(
  'name'      => '自定义关键词',
  'id'        => 'keywords',
  'desc'      => '自定义网站关键词',
  'std'       => '',
  'edit_only' => false,
  "type"      => "text"
);
$leonhere_option[] = array(
  'name'      => '自定义描述',
  'id'        => 'description',
  'desc'      => '自定义网站描述',
  'std'       => '',
  'edit_only' => false,
  "type"      => "textarea"
);
$leonhere_option[] = array(
  'name'      => '标题间隔符',
  'id'        => 'separator',
  'desc'      => '自定义网页标题间隔符，默认_',
  'std'       => '_',
  'edit_only' => false,
  "type"      => "text"
);


$leonhere_option[] = array(
  'type' => 'close',
);
$child_page = new ashuwp_options_feild($leonhere_option, $settings_info);

